<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<div th:include="include :: header"></div>
<script type="text/javascript" src="https://cdn.bootcss.com/flv.js/1.5.0/flv.js"></script> 
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="ibox float-e-margins">
	                <div class="ibox-content" style="width:50%;margin: auto;text-align: center;" >
						<h1>http-flv样例</h1>
                <video id="videoElement"></video> 
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
</body>
<script>
    if (flvjs.isSupported()) {
        var videoElement = document.getElementById('videoElement');
        var flvPlayer = flvjs.createPlayer({
            type: 'flv',
            isLive: true,
//             url: 'http://127.0.0.1/oflaDemo/flv/sssssss'
			url:'http://127.0.0.1/oflaDemo/flv/file.flv'
        });
        flvPlayer.attachMediaElement(videoElement);
        flvPlayer.load();
        flvPlayer.play();
    }
</script>
</html>
